3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next

Version Checking

The Q3XObjectHierarchy_GetClassVersion function lets you check the version number of a custom class.

Q3XObjectHierarchy_GetClassVersion

You can use the Q3XObjectHierarchy_GetClassVersion function to get the version number of a class type.

TQ3Status Q3XObjectHierarchy_GetClassVersion(
                     TQ3ObjectType             objectClassType,
                     TQ3XObjectClassVersion    *version);
objectClassType
A class type.
version
On return, a version number.

DESCRIPTION

The Q3XObjectHierarchy_GetClassVersion function returns, in the version parameter, the version number of the class type designated by objectClassType.

QuickDraw 3D includes two utility macros that let you obtain the version numbers of a class.

#define Q3_OBJECT_CLASS_GET_MAJOR_VERSION(version)
                                (unsigned long) ((version) >> 16)
#define Q3_OBJECT_CLASS_GET_MINOR_VERSION(version)
                                (unsigned long) ((version) & 0x0000FFFF)

These are convenience macros that unpack a version, accessing its major and minor version numbers.

SEE ALSO

"Q3XMethodTypeObjectClassVersion"


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next